package com.baizhi.cmfz.dao;

import com.baizhi.cmfz.entity.Guru;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GuruDao {

    public List<Guru> selectAllGuru(@Param("offset") int offset,@Param("limit")  int limit,@Param("name") String name);

    public  int selectTotalCountGuru(@Param("name") String name);

    public  int insertGuru(Guru guru);

    public  int updateState(@Param("id") int gid ,@Param("status") int status);

    public  int updateGuru(Guru guru);
    public  Guru selectOneGuru(Integer gid);

    public  int deleteGuru(Integer id);
//根据传进来的编号 批量下载
    public  List<Guru>selectConditionGuru(int[] ids);
}
